<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2022/3/20
 * Time: 22:23
 */

namespace app\admin\validate;

use think\Validate;

class News extends Validate {
    protected $rule = [
        'title' => 'require',
        'cover' => 'require',
//        'main_img' => 'require'
    ];

    protected $message = [
        'title.require' => '请输入标题',
        'cover.require' => '请上传封面图',
        'main_img.require' => '请上传主图'
    ];
}